import Vue from 'vue'
import App from './App'
/* ui框架样式 */
import "colorui/main.css"
import "colorui/icon.css"
/* 基础样式 */
import "./static/css/uinorm.css"
/* 导入接口 */
let api = require('./static/js/api');
Vue.prototype.$api = api;
/* 颜色配置 */
import theme from './static/js/theme.js'
  Vue.prototype.theme =theme;
/* 二维码生成器 */
import QR from "./static/js/wxqrcode.js"
Vue.prototype.QR = QR;

// #ifdef H5
import weixin from './static/js/share.js'
Vue.prototype.$share = weixin
import pay from './static/js/pay.js'
Vue.prototype.$pay = pay
import vconsole from './static/js/vconsole.min.js'
if(process.env.NODE_ENV=='development'){
	new vconsole()
}
// #endif
import store from './store'
Vue.prototype.$store = store
/* 首页 */
import home from './pages/home/index.vue'
Vue.component('home',home)
/* 分类 */
import category from './pages/category/index.vue'
Vue.component('category',category)
/* 订单管理 */
import order from './pages/order/index.vue'
Vue.component('order',order)
/* 用户中心 */
import user from './pages/user/index.vue'
Vue.component('user',user)
/* 内容中心 */
import center from './pages/center/index.vue'
Vue.component('center',center)
/* 自定义导航栏 */
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()

 



